package com.clouddot.baipai.model;


import android.content.Context;

import com.clouddot.baipai.contract.ITableFragmentContract;
import com.clouddot.baipai.http.TableRetrofitHelper;
import com.clouddot.baipai.infrastructure.environment.Env;

import org.wxy.sdk.base.impl.BaseModelImpl;

import rx.Observable;

public class TableFragmentModel extends BaseModelImpl implements ITableFragmentContract.IModel {
    public TableFragmentModel(Context context) {
        super(context);

    }


    @Override
    public Observable<String> getCourseTable(String acttype, String classId) {
        return TableRetrofitHelper.getInstance(getContext()).getServer().getClassTable(Env.getAppContext().IP,acttype,classId);
    }
}
